<template>
    <div>
        <!-- 电影展示组件 start -->
        <div class="film-item" v-for="film in 6" :key="film">
            <div class="film-img" :style="'background-image:url(' + require('../assets/film.jpg') + ')'"></div>
            <div class="film-title">测试电影名称</div>
            <div class="film-source">
                <span class="star-img open"></span>
                <span class="star-img open"></span>
                <span class="star-img open"></span>
                <span class="star-img close"></span>
                <span class="star-img close"></span>
                <span class="star-source">7.7</span>
            </div>
        </div>
        <!-- 电影展示组件 end -->
    </div>
</template>

<script>
export default {

}
</script>

<style>
.list-content>.film-item,
.content-list>.film-item {
    width: 2.35rem;
    height: 4.55rem;
    display: inline-block;
    margin-left: 0.1rem;
    vertical-align: top;
}

.list-content>.film-item>.film-img,
.content-list>.film-item>.film-img {
    height: 3.6rem;
    background-color: #cccccc;
    background-repeat: no-repeat;
    background-size: cover;
}

.list-content>.film-item>.film-title,
.content-list>.film-item>.film-title {
    font-size: 0.26rem;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    margin: 0.1rem;
}
.film-source {
  margin: 0rem 0.1rem 0rem 0rem;
}
.film-source > span {
  height: 0.22rem;
  width: 0.22rem;
  line-height: 0.22rem;
  margin-left: 0.1rem;
}
.film-source > .star-img {
  display: inline-block;
  background-repeat: no-repeat;
  background-size: 100%;
}
.film-source > .open {
  background-image: url("../assets/star-open.png");
}
.film-source > .close {
  background-image: url("../assets/star-close.png");
}
.film-source > .star-source {
  padding-right: 0.1rem;
  font-size: 0.3rem;
}
.film-source > .star-tip {
  color: #6c757d;
  font-size: 0.28rem;
}

</style>